import request from "@/utils/request";
import { ParseData } from "@/utils/utils";

// 获取VR列表分页
export const GetVRList = (data: any) => {
  return request({
    method: "GET",
    url: `/vrzhanting?${ParseData(data)}`,
  });
};
// VR上下架
export const ChangeVRStatus = (data: any) => {
  return request({
    method: "PUT",
    url: `/vrzhanting/shangjia/${data.id}`,
  });
};
// VR删除
export const DeleteVR = (data: any) => {
  return request({
    method: "DELETE",
    url: `/vrzhanting/${data.id}`,
  });
};
// VR新增
export const AddVR = (data: any) => {
  return request({
    method: "POST",
    url: `/vrzhanting`,
    data,
  });
};
// VR编辑
export const EditVR = (data: any) => {
  return request({
    method: "PUT",
    url: `/vrzhanting`,
    data,
  });
};
// VR信息
export const GetVR = (data: any) => {
  return request({
    method: "GET",
    url: `/vrzhanting/${data.id}`,
  });
};


